using NFreeMarker.Template;

namespace NFreeMarker.Ext.Util
{
    /**
     * Interface used to create various wrapper models in the {@link ModelCache}.
     * @version $Id: ModelFactory.java,v 1.6 2003/01/12 23:40:16 revusky Exp $
     * @author Attila Szegedi, szegedia at freemail dot hu
     */
    public interface IModelFactory
    {
        /**
         * Create a wrapping model for the specified object that belongs to
         * the specified wrapper.
         */
        ITemplateModel Create(object obj, IObjectWrapper wrapper);
    }
}